import request from '@/utils/request'

// api地址
const apiUri = {
	detail: 'page/detail',
	index: 'page/index',
	getData: 'page/getData',
	getTimus: 'page/getTimus',
	queu: 'page/queu',
	getPoster:'page/getPoster',
	getShare:'page/getShare'
}

export function getShare(id) {
  return request.get(apiUri.getShare, {
		id
	})
}

export function getPoster(id) {
  return request.get(apiUri.getPoster, {
		id
	})
}

export const queu = (data) => {
	return request.post(apiUri.queu, {
	
		form: data
	})
}

// 页面数据
export function detail(pageId) {
	return request.get(apiUri.detail, {
		pageId
	})
}
export function index() {
	return request.get(apiUri.index)
}
export function getData() {
	return request.get(apiUri.getData)
}
export function getTimus(type) {
	return request.get(apiUri.getTimus,{type})
}